﻿using IceZero.DataStore.Models;
using NHibernate.Mapping.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceZero.DataStore.Models
{
    [Class(Table = "IceZero_TodoContent")]//定义数据库表名
    [Serializable]
    public class TodoContent:ModelBase
    {
        public TodoContent():base(genIdAuto:true)
        {

        }
        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Title", TypeType = typeof(string), Length = 100)]
        public virtual string Title { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Content", TypeType = typeof(string), Length = 2000)]
        public virtual string Content { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "IsCompleted", TypeType = typeof(bool))]
        public virtual bool IsCompleted { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Remark", TypeType = typeof(string),Length =500)]
        public virtual string Remark { get; set; }
    }
}
